home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-25 | 3.6 KB | 120 lines | [TEXT/MPS ] |
- *******************************************************************************
- *
- * File: E16.IR
- *
- * Equates for IR, the Finder Extension version
- *
- * Copyright 1991, Apple Computer, Inc. All rights reserved.
- * Modification History:
- *
- * Version Author
- *
- * 2.0a1 Matt Deatherage
- * First version of this file.
- *
- * 2.0a2 Matt Deatherage
- * NDA equates changed and reworked. MaxFEs deleted; it's not valid anymore.
- *
- * 2.0a3 Matt Deatherage
- * First code-review release; no equate changes.
- *
- * 2.0b1 Matt Deatherage
- * Added preferences file type and auxiliary type
- *
- * 2.0b3 Matt Deatherage
- * Fixed a comment or two to reflect reality.
- *
- * 2.0b4 Matt Deatherage
- * Added irDelayedStart for the convoluted mechanism added in 2.0b4.
- *
- * 2.0 Matt Deatherage
- * Changed all relative offsets (irErrorBase+x) to absolutes since these
- * can't change once this is released.
- *
- *******************************************************************************
-
- ; requests we accept
-
- ;finderSaysHello equ $0100
- ;finderSaysGoodbye equ $0101
- ;finderSaysBeforeOpen equ $0104
- ;finderSaysOpenFailed equ $0105
- ;finderSaysExtrasChosen equ $0108
- ;finderSaysKeyHit equ $010A
- ;srqGoAway equ $0003
-
- ;irRequestBase equ $C300
- askIRStartUp equ $C300
- askIRAreYouThere equ $C301
- askIRToInstall equ $C302
- askIRGetPrefs equ $C303
- askIRSetPrefs equ $C304
- askIRDoPrefs equ $C305
-
-
- ; flags for IR preferences (and to the askIRToInstall routine)
-
- irDefaultPrefs equ 0 ; default == all bits clear
-
- irSpecialPrefs equ 1<<0 ; 1 = these flags override IR preferences
- ; 0 = use preferences from IR preferences file
-
- irDoDiskPrefs equ irSpecialPrefs ; same bit used to indicate disk access sometimes
-
- irNoDuplicates equ 1<<1 ; 1 = duplicates not allowed; do something if so
- ; 0 = duplicates OK
-
- irKillDuplicates equ 1<<2 ; 1 = kill duplicates -- error if you can't
- ; 0 = try to kill duplicates -- no error if not
- ; meaningless if irNoDuplicates is clear
-
- irDontOpenNDAs equ 1<<3 ; 1 = just install NDAs, don't open them
- ; 0 = open NDAs and futz Apple Menu if Desk active
-
- irKillFinderExts equ 1<<4 ; 1 = kill this Finder extension on Finder quit
- ; 0 = leave this extension around forever
-
- irCopyExistNDAs equ 1<<5 ; 1 = Install new ones like normal
- ; 0 = Open existing NDAs instead of installing copies
- ; (This only happens if irKillDuplicates is clear)
-
- irWaitOpenFailed equ 1<<6 ; 1 = Only open on OpenFailed for compatibility
- ; 0 = Install files on FinderSaysBeforeOpen
-
- irIgnoreProblems equ 1<<7 ; 1 = Ignore problems and proceed as best you can
- ; 0 = Alert user to problems if we can
-
- ; IR error codes
-
- irErrorMask equ $FF00 ; AND with mask and compare to errorBase to see if
- irErrorBase equ $C300 ; this is an IR error code.
-
- irDuplicateExists equ $C301 ; a duplicate exists with irNoDuplicates set
- irDuplicateWontDie equ $C302 ; a duplicate exists and won't go away
- irNoFinder equ $C303 ; you can't install Finder Extensions without Finder
- irGSOSNotAvail equ $C304 ; IR can't do many things if GS/OS isn't available
- irNotIRFile equ $C305 ; not a file IR can install
- irBusy equ $C306 ; IR was already busy doing something
- irCantPrint equ $C307 ; IR doesn't accept "Print" requests (vs. "Open")
- irDelayedStart equ $C308 ; IR has to wait a minute to start this thing
-
- ; IR file type constants
-
- PermInitType equ $B6
- TempInitType equ $B7
- NDAType equ $B8
- CDAType equ $B9
- DriverType equ $BB
- DriverAuxMask equ $3FC0
- DriverAuxType equ $0100
- GenLoadType equ $BC
- FindExtAuxType equ $0001
- FindExtAuxMask equ $7FFF ; AND with this to clear unimportant bits
- IRPrefsType equ $5A
- IRPrefsAuxType equ $000A
-
- ; other equates
-
- acceptRequest equ $8000
- denyRequest equ $0000
-